﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SelfService.DataAccess.Migrations
{
    public partial class Order表新增医保结算信息 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<decimal>(
                name: "AccountAmount",
                table: "SysPrescriptions",
                type: "decimal(10,2)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "FundAmount",
                table: "SysPrescriptions",
                type: "decimal(10,2)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "ReimbursementAmount",
                table: "SysPrescriptions",
                type: "decimal(10,2)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "SelfAmount",
                table: "SysPrescriptions",
                type: "decimal(10,2)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "SocialSecurityStatus",
                table: "SysPrescriptions",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AccountAmount",
                table: "SysPrescriptions");

            migrationBuilder.DropColumn(
                name: "FundAmount",
                table: "SysPrescriptions");

            migrationBuilder.DropColumn(
                name: "ReimbursementAmount",
                table: "SysPrescriptions");

            migrationBuilder.DropColumn(
                name: "SelfAmount",
                table: "SysPrescriptions");

            migrationBuilder.DropColumn(
                name: "SocialSecurityStatus",
                table: "SysPrescriptions");
        }
    }
}
